import request from '../request'

//用户登录
export function login(params) {
  return request({ url: '/admin/Login/index',method: 'post',data: params})
}

//用户退出
export function logout(params) {
  return request({ url: '/admin/Login/logout',method: 'post',data: params})
}

//获取登录信息 菜单 路由组建
export function getUserInfo(params) {
  return request({ url: '/admin/Login/getUserInfo',method: 'post',data: params})
}

//获取验证码
export function captch(params) {
  return request({ url: '/admin/Login/verify',method: 'post',data: params})
}

//获取上传路径以及上传类型
export function upload(params) {
  return request({ url: '/admin/Upload/uploadImages',method: 'post',data: params})
}

//文件列表
export function fileList(params) {
	return request({ url: '/admin/Base/fileList',method: 'post',data: params})
}

//删除文件
export function deleteFile(params) {
	return request({ url: '/admin/Base/deleteFile',method: 'post',data: params})
}

//删除文件
export function getRoleMenus(params) {
	return request({ url: '/admin/Base/getRoleMenus',method: 'post',data: params})
}

//重置密码
export function resetPwd(params) {
	return request({ url: '/admin/Base/resetPwd',method: 'post',data: params})
}

//首页数据
export function homeData(params) {
	return request({ url: '/admin/Home/index',method: 'post',data: params})
}

//清除缓存
export function clearCache(params) {
	return request({ url: '/admin/Base/clearCache',method: 'post',data: params})
}

//oss直传返回的文件写入库
export function createFile(params) {
	return request({ url: '/admin/Upload/createFile',method: 'post',data: params})
}

//回去头部的消息通知
export function getNotice(params) {
	return request({ url: '/admin/Home/getNotice',method: 'post',data: params})
}

